#!/bin/sh

cat /proc/cpuinfo
cat /proc/meminfo

echo "start to compile"
gcc main_ac.c multi_pattern_ac.c -o main_ac
gcc main_ac_nfa.c multi_pattern_ac_nfa.c -o main_ac_nfa
gcc main_ac_nfa_br.c multi_pattern_ac_nfa_br.c -o main_ac_nfa_br

echo "start to run"
./main_ac.exe
./main_ac_nfa.exe
./main_ac_nfa_br.exe
